package day2;

/**
 * @author oldliu
 * @since 1.0
 */
public class AvgTest {
    public static void main(String[] args) {
        Student sr[]=new Student[10];
        for(int i=0;i<sr.length;i++){
            sr[i]=new Student("王"+i,40+i);
//            sr[i].name="老刘"+i;
//            sr[i].math= (int) (Math.random()*80);
//            sr[i].english= (int) (Math.random()*80);
//            sr[i].chinese= (int) (Math.random()*80);
        }
        Calculator2 teacher=new Calculator2();
        teacher.name="李老师";
        int avg = teacher.calcAvg(sr);
        System.out.println("平均分是："+avg);
    }
}
